import type { AppRouteModule } from '/@/router/types';

// import { getParentLayout } from '/@/router/constant';
import { SIMPLE_LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';
const route: AppRouteModule = {
  path: '/pages',
  name: 'Pages',
  //   component: getParentLayout('Pages'),
  component: SIMPLE_LAYOUT,
  redirect: '/pages/error',
  meta: {
    orderNo: 5000,
    icon: 'tabler:chart-dots',
    title: t('routes.pages.page'),
  },
  children: [
    {
      path: 'error',
      name: 'PagesError',
      component: () => import('/A/pages/views/error.vue'),
      meta: {
        title: '错误',
      },
    },
    {
      path: 'index/warning-publish',
      name: 'PagesIndexWarningPublish',
      component: () => import('/A/pages/views/index/warning-publish.vue'),
      meta: {
        title: t('routes.pages.page'),
        // hideMenu: true,
      },
    },
  ],
};

export default route;
